package com.aijk.ehm.api;

import com.aijk.commons.exception.ErrorCodeException;
import com.aijk.ehm.model.BasHealthAssessment;
import com.aijk.ehm.model.qo.BasHealthAssessmentQo;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * 健康评估结果表
 */
public interface BasHealthAssessmentApi {
    Long save(BasHealthAssessment bean) throws ErrorCodeException;

    void update(BasHealthAssessment bean) throws ErrorCodeException;

    BasHealthAssessment findOne(Long id) throws ErrorCodeException;

    List<BasHealthAssessment> list(BasHealthAssessmentQo qo);

    void deleteById(Long id) throws ErrorCodeException;

    void delete(BasHealthAssessmentQo qo) throws ErrorCodeException;

    int count(BasHealthAssessmentQo qo);

    PageInfo<BasHealthAssessment> page(BasHealthAssessmentQo qo);
}